<table class="table table-bordered table-hover table-striped">
	<tbody>
		<tr align="center">
			<td width="5%"><strong>编号</strong></td>
			<td width="10%"><strong>合同编号</strong></td>
			<td width="7%"><strong>房间号</strong></td>
			<td width="10%"><strong>总充值</strong></td>
			<td width="10%"><strong>减免费用</strong></td>
			<td width="8%"><strong>当前余额</strong></td>
			<td width="5%"><strong>总费用</strong></td>
		</tr>
		<?php if($list){ foreach($list as $k=>$ls){ ?>
		<tr align="center">
			<td><?php echo ($page-1)*C('PAGE_SIZE')+($k+1); ?></td>
			<td>{$ls['member_nick']}</td>
			<td>{$ls['room_number']}</td>
			<td>{$ls['card']}</td>
			<td><?php echo date('Y-m-d H:i:s', $ls['createtime']);?></td>
			<td>{$ls['card_type']}</td>
			<td>{$ls['lock_id']}</td>
		</tr>
		<?php } }else{ ?>
		<tr align="center">
			<td colspan="14">暂无数据...</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<div class="pagination" style="float: right; widht: 95%">
	<include file="Common/page" />
</div>
<script>
	$(document).ready(function(){
		$(".goback").on('click', function(){
			var id = $(this).attr('logid');
			$.post('__ACTION__', {id: id}, function(data){
				if(data/1 == 1){
					$("#log_"+ id).html('已退卡');
				}else{
					alert(data);
				}
			});
		})
	});
</script>